Skip to main content

markers

Type​

property

Summary​

Marker points on the map

Syntax​

set the markers of <widget> to <pMarkerData>
get the markers of <widget>

Description​

Allows the display of markers at specified points on the map, with associated title and optional subtitle.

The marker array has the following form:

{
&lt;tag for marker&gt;: {
\"title\": &lt;title of the marker&gt;,
\"subtitle\": &lt;optional subtitle of the marker&gt;,
\"coordinates\": &lt;coordinates of the marker&gt;
},
&lt;tag for marker&gt;: {
...
},
...
}

Examples​

local tMarkers, tMarkerData
put "55.9533,-3.1883" into tMarkerData["coordinates"]
put "Centre of Edinburgh" into tMarkerData["title"]
put tMarkerData into tMarkers["Edinburgh"]
set the markers of widget "Map" to tMarkers

Value​

NameTypeDescription

value

An array describing the marker data

Compatibility and Support​

OS

mac

ios

android

web

Platforms

desktop

mobile